/**
 * @author liuxin
 * @e-mail lxtobe5@gmail.com
 * @update 2011.12.25
 */
package com.lx.display.type
{
	import com.lx.display.Graph;

	public class Triangles extends Graph
	{
		/**
		 * Draws a rounded Triangles.
		 * @param vertices  A Vector of Numbers where each pair of numbers is treated as a coordinate location 
		 *                  (an x, y pair).
		 * @param indices   A Vector of integers or indexes, where every three indexes define a triangle. 
		 * @param uvtData   A Vector of normalized coordinates used to apply texture mapping. 
		 * @param culling   Specifies whether to render triangles that face in a specified direction. 
		 */		
		public function draw(vertices:Vector.<Number>, indices:Vector.<int> = null, uvtData:Vector.<Number> = null, culling:String = "none"):void
		{
			$displayObject.graphics.drawTriangles(vertices,indices,uvtData,culling);
			$displayObject.graphics.endFill();
		}
	}
}